<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
     xmlns:f="http://java.sun.com/jsf/core"      
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:p="http://primefaces.org/ui">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Terra Investimentos</title>
</h:head>
    <h:body>
      

     <h4>Responsavel</h4>
<br></br>
<p:commandButton id="cadastraResponsavel" type="button" value="Novo..." onclick="PF('dlg').show()" icon="ui-icon-pencil"/>

<p:dialog header="Cadastrar Responsavel" widgetVar="dlg" resizable="false">
   <h:form id="form">
   <p:growl id="growl" showDetail="true" sticky="true"/>
       <h:panelGrid columns="2" style="margin-bottom:10px">  
            <h:outputLabel for="nome" value="Nome:" />  
            <p:inputText id="nome" value="#{tbcurso.nomeCurso}"/> 
            
        </h:panelGrid>  
        <p:commandButton id="submitButton" value="Salvar" oncomplete="PF('dlg').hide();" action="#{responsavel.insertResponsavel}" icon="ui-icon-disk"/>   
   </h:form>
</p:dialog>        

            

        
    </h:body>
</html>

